void WriteEncoders(int MotorRight, int MotorLeft, int NMBR)
{
string sFileName = "Encoder" + NMBR + ".dat";

TFileIOResult nIoResult;
TFileHandle hFileHandle;

int nFileSize 					= 100;
MotorLeft = 0;
MotorRight = 0;


{
	CloseAllHandles(nIoResult);
	wait1Msec(500);
	wait1Msec(11);
  Delete(sFileName, nIoResult);
	hFileHandle = 0;
  OpenWrite(  hFileHandle, nIoResult, sFileName, nFileSize);
  WriteFloat(hFileHandle, nIoResult, (float) MotorRight);
  WriteFloat(hFileHandle, nIoResult, (float) MotorLeft);
  Close(hFileHandle, nIoResult);
  return;
}
}